package com.youpai.platform.vulture.service.enums;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @date: 2022/7/10 21:34
 * @author: Anna
 * @version: 1.0
 * @description: VultureChannel通道事件
 */
@NoArgsConstructor
@AllArgsConstructor
public enum VultureChannelEventEnum {

    CONNECTED(1,"connected","成功连接（握手成功）"),
    DIS_CONNECTED(2,"disConnected","断开连接"),
    KICK_BY_OTHER_USER(3,"kickByOtherUser","被其他用户踢掉"),
    KICK_BY_ONESELF(3,"kickByOneSelf","被自己踢掉"),
    KICK_BY_SERVER(4,"kickByServer","被服务器强制断开连接"),
    RE_CONNECTED_BY_SERVER(5,"reConnectByServer","被服务器通知重新连接"),
    ;
    /**
     * 类型标识
     */
    public int eventType;

    /**
     * code码
     */
    public String eventCode;

    /**
     * 消息
     */
    public String msg;

}
